300 |
How can I change the font for entire item
|
299 |
How do I vertically align a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.DrawGridLines(-2/*exRowLines*/); COM::createFromVariant(excombobox1.Columns().Add("MultipleLine")).Def(16/*exCellSingleLine*/,COMVariant::createFromBoolean(false)); excombobox1.Columns().Add("VAlign"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("This is a bit of long text that should break the line"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"top"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),0/*exTop*/); h = com_Items.AddItem("This is a bit of long text that should break the line"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"middle"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),1/*exMiddle*/); h = com_Items.AddItem("This is a bit of long text that should break the line"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"bottom"); com_Items.CellVAlignment(h,COMVariant::createFromInt(1),2/*exBottom*/); } |
298 |
How can I change the position of an item
|
297 |
How do I find an item based on a path
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.ItemData(com_Items.InsertItem(h,,"Child 2"),COMVariant::createFromInt(1234)); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.FindPath("Root 1\\Child 1"),true); } |
296 |
How do I find an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.FindItem("Child 2",COMVariant::createFromInt(0)),true); } |
295 |
How can I insert a hyperlink or an anchor element
public void init() { COM com_Items,com_Items1; anytype var_Items,var_Items1; ; super(); excombobox1.Columns().Add("Column"); var_Items = excombobox1.Items(); com_Items = var_Items; com_Items.CellCaptionFormat(com_Items.AddItem("Just an <a1>anchor</a> element ..."),COMVariant::createFromInt(0),1/*exHTML*/); var_Items1 = excombobox1.Items(); com_Items1 = var_Items1; com_Items1.CellCaptionFormat(com_Items1.AddItem("Just another <a2>anchor</a> element ..."),COMVariant::createFromInt(0),1/*exHTML*/); } |
294 |
How do I find the index of the item based on its handle
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.ItemByIndex(com_Items.ItemToIndex(h)),true); } |
293 |
How do I find the handle of the item based on its index
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.ItemByIndex(1),true); } |
292 |
How can I find the cell being clicked in a radio group
|
291 |
Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later
|
290 |
Can I let the user to resize at runtime the specified item
public void init() { COM com_Items; anytype var_Items; ; super(); excombobox1.ScrollBySingleLine(true); excombobox1.DrawGridLines(-2/*exRowLines*/); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; com_Items.ItemAllowSizing(com_Items.AddItem("resizable item"),true); com_Items.AddItem("not resizable item"); } |
289 |
How can I change the size ( width, height ) of the picture
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(excombobox1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))); com_Items.CellPictureWidth(h,COMVariant::createFromInt(0),24); com_Items.CellPictureHeight(h,COMVariant::createFromInt(0),24); com_Items.ItemHeight(h,32); h = com_Items.AddItem("Root 2"); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(excombobox1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"))); com_Items.ItemHeight(h,48); } |
288 |
How do I unselect an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(h,false); } |
287 |
How do I find the selected item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(h,true); com_Items.ItemBold(com_Items.SelectedItem(0),true); } |
286 |
How do I select an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SelectItem(h,true); } |
285 |
Can I display a button with some picture or icon inside
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); excombobox1.Columns().Add("C1"); excombobox1.Columns().Add("C2"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button <img>p1</img> "); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); com_Items.ItemHeight(h,48); } |
284 |
Can I display a button with some picture or icon inside
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; excombobox1.Images(COMVariant::createFromStr(var_s)); excombobox1.Columns().Add("C1"); excombobox1.Columns().Add("C2"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button <img>1</img> "); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); } |
283 |
Can I display a button with some icon inside
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; excombobox1.Images(COMVariant::createFromStr(var_s)); excombobox1.Columns().Add("C1"); excombobox1.Columns().Add("C2"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1)," <img>1</img> "); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(1),1/*exHTML*/); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); } |
282 |
How can I assign multiple icon/picture to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.HTMLPicture("p1","c:\\exontrol\\images\\zipdisk.gif"); excombobox1.HTMLPicture("p2","c:\\exontrol\\images\\auction.gif"); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("text <img>p1</img> another picture <img>p2</img> and so on"); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); com_Items.CellPicture(h,COMVariant::createFromInt(0),COM::createFromVariant(excombobox1.ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"))); com_Items.ItemHeight(h,48); com_Items.AddItem("Root 2"); } |
281 |
How can I assign an icon/picture to a cell
|
280 |
How can I assign multiple icons/pictures to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; excombobox1.Images(COMVariant::createFromStr(var_s)); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root <img>1</img> 1, <img>2</img>, ... and so on "); com_Items.CellCaptionFormat(h,COMVariant::createFromInt(0),1/*exHTML*/); } |
279 |
How can I assign multiple icons/pictures to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; excombobox1.Images(COMVariant::createFromStr(var_s)); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.CellImages(h,COMVariant::createFromInt(0),"1,2,3"); } |
278 |
How can I assign an icon/picture to a cell
public void init() { COM com_Items; anytype var_Items; int h; str var_s; ; super(); var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"; var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"; var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"; var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="; excombobox1.Images(COMVariant::createFromStr(var_s)); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.CellImage(h,COMVariant::createFromInt(0),1); com_Items.CellImage(com_Items.InsertItem(h,,"Child 1"),COMVariant::createFromInt(0),2); com_Items.CellImage(com_Items.InsertItem(h,,"Child 2"),COMVariant::createFromInt(0),3); com_Items.ExpandItem(h,true); } |
277 |
How can I get the handle of an item based on the handle of the cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.CellItem(com_Items.ItemCell(h,COMVariant::createFromInt(0))),true); } |
276 |
How can I display a button inside the item or cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("C1"); excombobox1.Columns().Add("C2"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button 1 "); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),2/*RightAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); h = com_Items.AddItem("Cell 2"); com_Items.CellCaption(h,COMVariant::createFromInt(1)," Button 2 "); com_Items.CellHAlignment(h,COMVariant::createFromInt(1),1/*CenterAlignment*/); com_Items.CellHasButton(h,COMVariant::createFromInt(1),true); } |
275 |
How can I change the state of a radio button
|
274 |
How can I assign a radio button to a cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.MarkSearchColumn(false); excombobox1.SelBackColor(WinApi::RGB2int(255,255,128)); excombobox1.SelForeColor(WinApi::RGB2int(0,0,0)); excombobox1.Columns().Add("C1"); excombobox1.Columns().Add("C2"); excombobox1.Columns().Add("C3"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Radio 1"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(1),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(1),1234); com_Items.CellCaption(h,COMVariant::createFromInt(2),"Radio 2"); com_Items.CellHasRadioButton(h,COMVariant::createFromInt(2),true); com_Items.CellRadioGroup(h,COMVariant::createFromInt(2),1234); com_Items.CellState(h,COMVariant::createFromInt(1),1); } |
273 |
How can I change the state of a checkbox
|
272 |
How can I assign a checkbox to a cell
|
271 |
How can I display an item or a cell on multiple lines
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.ScrollBySingleLine(true); excombobox1.Columns().Add("C1"); excombobox1.Columns().Add("C2"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"This is bit of text that's shown on multiple lines"); com_Items.CellSingleLine(h,COMVariant::createFromInt(1),false); } |
270 |
How can I assign a tooltip to a cell
|
269 |
How can I associate an extra data to a cell
|
268 |
How do I enable or disable a cell
|
267 |
How do I change the cell's foreground color
|
266 |
How do I change the visual effect for the cell, using your EBN files
|
265 |
How do I change the cell's background color
|
264 |
How do I change the caption or value for a particular cell
|
263 |
How do I get the handle of the cell
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.CellBold(,com_Items.ItemCell(h,COMVariant::createFromInt(0)),true); } |
262 |
How do I retrieve the focused item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.FocusItem(),true); } |
261 |
How do I get the number or count of child items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.AddItem(com_Items.ChildCount(h)); } |
260 |
How do I enumerate the visible items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("Root 2"); com_Items.ItemBold(com_Items.FirstVisibleItem(),true); com_Items.ItemBold(com_Items.NextVisibleItem(com_Items.FirstVisibleItem()),true); } |
259 |
How do I enumerate the siblings items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("Root 2"); com_Items.ItemBold(com_Items.NextSiblingItem(com_Items.FirstVisibleItem()),true); com_Items.ItemBold(com_Items.PrevSiblingItem(com_Items.NextSiblingItem(com_Items.FirstVisibleItem())),true); } |
258 |
How do I get the parent item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.ItemParent(com_Items.ItemChild(h)),true); } |
257 |
How do I get the first child item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.ItemBold(com_Items.ItemChild(h),true); } |
256 |
How do I enumerate the root items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("Root 2"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ItemBold(com_Items.RootItem(0),true); com_Items.ItemUnderline(com_Items.RootItem(1),true); } |
255 |
I have a hierarchy, how can I count the number of root items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root 1"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); h = com_Items.AddItem("Root 2"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.AddItem(com_Items.RootCount()); } |
254 |
How can I make an item unselectable, or not selectable
|
253 |
How can I hide or show an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Column"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("hidden"); com_Items.ItemHeight(h,0); com_Items.SelectableItem(h,false); com_Items.AddItem("visible"); } |
252 |
How can I change the height for all items
|
251 |
How do I change the height of an item
public void init() { COM com_Items; anytype var_Items; ; super(); excombobox1.ScrollBySingleLine(true); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; com_Items.ItemHeight(com_Items.AddItem("height"),128); excombobox1.Items().AddItem("enabled"); } |
250 |
How do I disable or enable an item
|
249 |
How do I display as strikeout a cell
public void init() { COM com_Items; anytype var_Items; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; com_Items.CellStrikeOut(com_Items.AddItem("strikeout"),COMVariant::createFromInt(0),true); } |
248 |
How do I display as strikeout a cell or an item
|
247 |
How do I display as strikeout an item
public void init() { COM com_Items; anytype var_Items; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; com_Items.ItemStrikeOut(com_Items.AddItem("strikeout"),true); } |
246 |
How do I underline a cell
|
245 |
How do I underline a cell or an item
|
244 |
How do I underline an item
|
243 |
How do I display as italic a cell
|
242 |
How do I display as italic a cell or an item
|
241 |
How do I display as italic an item
|
240 |
How do I bold a cell
|
239 |
How do I bold a cell or an item
|
238 |
How do I bold an item
|
237 |
How do I change the foreground color for the item
public void init() { COM com_Items; anytype var_Items; int h,hC; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); hC = com_Items.InsertItem(h,,"Child 1"); com_Items.ItemForeColor(hC,WinApi::RGB2int(255,0,0)); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); } |
236 |
How do I change the visual appearance for the item, using your EBN technology
public void init() { COM com_Items; anytype var_Items; int h,hC; ; super(); excombobox1.VisualAppearance().Add(1,"c:\\exontrol\\images\\normal.ebn"); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); hC = com_Items.InsertItem(h,,"Child 1"); com_Items.ItemBackColor(hC,0x1000000); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); } |
235 |
How do I change the background color for the item
public void init() { COM com_Items; anytype var_Items; int h,hC; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); hC = com_Items.InsertItem(h,,"Child 1"); com_Items.ItemBackColor(hC,WinApi::RGB2int(255,0,0)); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); } |
234 |
How do I expand or collapse an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); } |
233 |
How do I associate an extra data to an item
|
232 |
How do I get the number or count of items
public void init() { COM com_Items,com_Items1; anytype var_Items,var_Items1; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); var_Items1 = excombobox1.Items(); com_Items1 = var_Items1; com_Items1.AddItem(com_Items1.ItemCount()); } |
231 |
How can I change at runtime the parent of the item
|
230 |
How can I sort the items
public void init() { COM com_Column,com_Items; anytype var_Column,var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); var_Column = COM::createFromObject(excombobox1.Columns()).Item("Default"); com_Column = var_Column; com_Column.SortOrder(2/*SortDescending*/); } |
229 |
How do I sort the child items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Root"); com_Items.InsertItem(h,,"Child 1"); com_Items.InsertItem(h,,"Child 2"); com_Items.ExpandItem(h,true); com_Items.SortChildren(h,COMVariant::createFromInt(0),false); } |
228 |
How can I remove or delete all items
|
227 |
How can I remove or delete an item
|
226 |
How can I add or insert child items
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.LinesAtRoot(-1/*exLinesAtRoot*/); excombobox1.Columns().Add("C1"); excombobox1.Columns().Add("C2"); var_Items = excombobox1.Items(); com_Items = var_Items; h = com_Items.AddItem("Cell 1"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 2"); com_Items.CellCaption(com_Items.InsertItem(h,,"Cell 3"),COMVariant::createFromInt(1),"Cell 4"); com_Items.CellCaption(com_Items.InsertItem(h,,"Cell 5"),COMVariant::createFromInt(1),"Cell 6"); com_Items.ExpandItem(h,true); } |
225 |
How can I add or insert a child item
public void init() { COM com_Items; anytype var_Items; ; super(); excombobox1.LinesAtRoot(-1/*exLinesAtRoot*/); excombobox1.Columns().Add("Default"); var_Items = excombobox1.Items(); com_Items = var_Items; com_Items.InsertItem(com_Items.AddItem("root"),,"child"); } |
224 |
How can I add or insert an item
public void init() { COM com_Items; anytype var_Items; int h; ; super(); excombobox1.Columns().Add("C1"); excombobox1.Columns().Add("C2"); var_Items = excombobox1.Items(); com_Items = var_Items; com_Items.CellCaption(com_Items.AddItem("Cell 1"),COMVariant::createFromInt(1),"Cell 2"); h = com_Items.AddItem("Cell 3"); com_Items.CellCaption(h,COMVariant::createFromInt(1),"Cell 4"); } |
223 |
How can I add or insert an item
|
222 |
How can I get the columns as they are shown in the control's sortbar
|
221 |
How can I access the properties of a column
|
220 |
How can I remove all the columns
|
219 |
How can I remove a column
|
218 |
How can I get the number or the count of columns
|
217 |
How can I change the font for all cells in the entire column
public void init() { COM com_ConditionalFormat,com_f; anytype f,var_ConditionalFormat; ; super(); f = COM::createFromObject(new stdole.StdFont()); com_f = f; f.Name("Tahoma"); f.Size(12); var_ConditionalFormat = COM::createFromObject(excombobox1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Font(f); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); excombobox1.Columns().Add("Column"); excombobox1.Items().AddItem(COMVariant::createFromInt(0)); excombobox1.Items().AddItem(COMVariant::createFromInt(1)); } |
216 |
How can I change the background color for all cells in the column
public void init() { COM com_ConditionalFormat; anytype var_ConditionalFormat; ; super(); var_ConditionalFormat = COM::createFromObject(excombobox1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.BackColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); excombobox1.Columns().Add("Column"); excombobox1.Items().AddItem(COMVariant::createFromInt(0)); excombobox1.Items().AddItem(COMVariant::createFromInt(1)); } |
215 |
How can I change the foreground color for all cells in the column
public void init() { COM com_ConditionalFormat; anytype var_ConditionalFormat; ; super(); var_ConditionalFormat = COM::createFromObject(excombobox1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); excombobox1.Columns().Add("Column"); excombobox1.Items().AddItem(COMVariant::createFromInt(0)); excombobox1.Items().AddItem(COMVariant::createFromInt(1)); } |
214 |
How can I show as strikeout all cells in the column
|
213 |
How can I underline all cells in the column
public void init() { COM com_ConditionalFormat; anytype var_ConditionalFormat; ; super(); var_ConditionalFormat = COM::createFromObject(excombobox1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Underline(true); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); excombobox1.Columns().Add("Column"); excombobox1.Items().AddItem(COMVariant::createFromInt(0)); excombobox1.Items().AddItem(COMVariant::createFromInt(1)); } |
212 |
How can I show in italic all data in the column
public void init() { COM com_ConditionalFormat; anytype var_ConditionalFormat; ; super(); var_ConditionalFormat = COM::createFromObject(excombobox1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Italic(true); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); excombobox1.Columns().Add("Column"); excombobox1.Items().AddItem(COMVariant::createFromInt(0)); excombobox1.Items().AddItem(COMVariant::createFromInt(1)); } |
211 |
How can I bold the entire column
public void init() { COM com_ConditionalFormat; anytype var_ConditionalFormat; ; super(); var_ConditionalFormat = COM::createFromObject(excombobox1.ConditionalFormats()).Add("1"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Bold(true); com_ConditionalFormat.ApplyTo(0/*exFormatToColumns*/); excombobox1.Columns().Add("Column"); excombobox1.Items().AddItem(COMVariant::createFromInt(0)); excombobox1.Items().AddItem(COMVariant::createFromInt(1)); } |
210 |
How can I display a computed column and highlight some values that are negative or less than a value
public void init() { COM com_ConditionalFormat,com_Items,com_Items1; anytype var_ConditionalFormat,var_Items,var_Items1; ; super(); excombobox1.Columns().Add("A"); excombobox1.Columns().Add("B"); COM::createFromVariant(excombobox1.Columns().Add("(A+B)*1.19")).ComputedField("(%0 + %1) * 1.19"); var_Items = excombobox1.Items(); com_Items = var_Items; com_Items.CellCaption(com_Items.AddItem(COMVariant::createFromInt(1)),COMVariant::createFromInt(1),COMVariant::createFromInt(2)); var_Items1 = excombobox1.Items(); com_Items1 = var_Items1; com_Items1.CellCaption(com_Items1.AddItem(COMVariant::createFromInt(10)),COMVariant::createFromInt(1),COMVariant::createFromInt(20)); var_ConditionalFormat = COM::createFromObject(excombobox1.ConditionalFormats()).Add("%2 > 10"); com_ConditionalFormat = var_ConditionalFormat; com_ConditionalFormat.Bold(true); com_ConditionalFormat.ForeColor(WinApi::RGB2int(255,0,0)); com_ConditionalFormat.ApplyTo(2); } |
209 |
Can I display a computed column so it displays the VAT, or SUM
|
208 |
How can I show a column that adds values in the cells
|
207 |
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
public void init() { COM com_Column; anytype var_Column; ; super(); var_Column = COM::createFromVariant(excombobox1.Columns().Add("Filter")); com_Column = var_Column; com_Column.FilterOnType(true); com_Column.DisplayFilterButton(true); com_Column.AutoSearch(1/*exContains*/); excombobox1.Items().AddItem("Canada"); excombobox1.Items().AddItem("USA"); } |
206 |
Is there any function to filter the control's data as I type, something like filter on type
|
205 |
How can I programmatically filter a column
public void init() { COM com_Column; anytype var_Column; ; super(); var_Column = COM::createFromVariant(excombobox1.Columns().Add("Filter")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.FilterType(2/*exNonBlanks*/); excombobox1.Items().AddItem(); excombobox1.Items().AddItem("not empty"); excombobox1.ApplyFilter(); } |
204 |
How can I show or display the control's filter
|
203 |
How can I customize the items being displayed in the drop down filter window
public void init() { COM com_Column; anytype var_Column; str var_s; ; super(); var_Column = COM::createFromVariant(excombobox1.Columns().Add("Custom Filter")); com_Column = var_Column; com_Column.DisplayFilterButton(true); com_Column.DisplayFilterPattern(false); var_s = "Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.t"; var_s = var_s + "xt|*.log"; com_Column.CustomFilter(var_s); com_Column.FilterType(3/*exPattern*/); com_Column.Filter("*.xls"); excombobox1.Items().AddItem("excel.xls"); excombobox1.Items().AddItem("word.doc"); excombobox1.Items().AddItem("pp.pps"); excombobox1.Items().AddItem("text.txt"); excombobox1.ApplyFilter(); } |
202 |
How can I change the order or the position of the columns in the sort bar
public void init() { COM com_Column; anytype var_Column; ; super(); excombobox1.SortBarVisible(true); excombobox1.SortBarColumnWidth(48); COM::createFromVariant(excombobox1.Columns().Add("C1")).SortOrder(1/*SortAscending*/); COM::createFromVariant(excombobox1.Columns().Add("C2")).SortOrder(2/*SortDescending*/); var_Column = COM::createFromObject(excombobox1.Columns()).Item("C2"); com_Column = var_Column; com_Column.SortPosition(0); } |
201 |
How do I arrange my columns on multiple levels
public void init() { ; super(); COM::createFromVariant(excombobox1.Columns().Add("S")).Width(32); COM::createFromVariant(excombobox1.Columns().Add("Level 2")).LevelKey(COMVariant::createFromInt(1)); COM::createFromVariant(excombobox1.Columns().Add("Level 3")).LevelKey(COMVariant::createFromInt(1)); COM::createFromVariant(excombobox1.Columns().Add("Level 4")).LevelKey(COMVariant::createFromInt(1)); COM::createFromVariant(excombobox1.Columns().Add("Level 1")).LevelKey("2"); COM::createFromVariant(excombobox1.Columns().Add("Level 2")).LevelKey("2"); COM::createFromVariant(excombobox1.Columns().Add("Level 3")).LevelKey("2"); COM::createFromVariant(excombobox1.Columns().Add("Level 4")).LevelKey("2"); COM::createFromVariant(excombobox1.Columns().Add("E")).Width(32); } |